package com.hmall.search.pojo;

import com.hmall.common.dto.pojo.Item;
import lombok.Builder;
import lombok.Data;
import org.springframework.beans.BeanUtils;

@Data
public class ItemDoc {
    private String id;
    private String name;
    private String price;
    private String image;
    private String category;
    private String brand;
    private String sold;
    private String commentCount;
    private Boolean isAD;

    public ItemDoc(Item item) {
        BeanUtils.copyProperties(item,this);
    }
    public ItemDoc() {
    }
}
